package com.techsoul.module.accounting.enmus;

public enum AccountingStatusEnum {

    CREATED("CREATED", "新登记", "CREATED", "新登记"),
    needFix("needFix", "待修复", "needFix", "待修复"),
    needCorrect("needCorrect", "待修正", "needCorrect", "待修正"),
    SETTLED("SETTLED", "下账", "SETTLED", "下账"),
    sent("sent", "待对账", "sent", "待对账"),
    checked("checked", "已对账", "checked", "已对账"),
    CONFIRMED("CONFIRMED", "已确认", "CONFIRMED", "已确认");

    private final String eventCode;
    private final String eventName;
    private final String status;
    private final String statusName;

    AccountingStatusEnum(String eventCode, String eventName, String status, String statusName) {
        this.eventCode = eventCode;
        this.eventName = eventName;
        this.status = status;
        this.statusName = statusName;
    }

    public String getEventCode() {
        return eventCode;
    }

    public String getEventName() {
        return eventName;
    }

    public String getStatus() {
        return status;
    }

    public String getStatusName() {
        return statusName;
    }

    public static AccountingStatusEnum getEventEnum(String eventCode) {
        for (AccountingStatusEnum bean : AccountingStatusEnum.values()) {
            if (bean.getEventCode().equals(eventCode)) {
                return bean;
            }
        }
        return null;
    }
}
